#ifndef PUSHBUTTONCHOOSE_H
#define PUSHBUTTONCHOOSE_H

#include "PushButton.h"
#include "ui_base_lib_global.h"
class UI_BASE_LIBSHARED_EXPORT PushButtonChoose : public PushButton
{
    Q_OBJECT
public:
    explicit PushButtonChoose(QWidget *parent = nullptr);

    static void initButton(PushButtonChoose* p , QString str , int x , int y , int w , int h  , QString strOn, QString strOff, int index);

    void changeOn();
    void changeOff();
    void initStyleSheet(QString str);
    int getIndex();
    bool m_flag;
    QString m_strOn;
    QString m_strOff;
    int m_index;
signals:
    void evt_click();
public slots:
    void on_click();
};

#endif 
